<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<title>Table of Contents - did_you_mean: Ruby Standard Library Documentation</title>


<script src="./js/navigation.js" defer></script>
<script src="./js/search.js" defer></script>
<script src="./js/search_index.js" defer></script>
<script src="./js/searcher.js" defer></script>
<script src="./js/darkfish.js" defer></script>

<script src="./js/jquery-3.2.0.min.js"></script>

<script src="./js/vue.min.js"></script>
<script src="./js/js.cookie.min.js"></script>

<link href="./css/fonts.css" rel="stylesheet">
<link id='rdoccss' href="./css/rdoc.css" rel="stylesheet">
<link href="./css/carbon17.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "./";
  var index_rel_prefix = "./";
  var darkModeCsseHref = "./css/rdoc-dm.css"
  var defaultModeCssHref = "./css/rdoc.css"
  // var cssDarkmode = Cookies.get('darkmode');
  
  if( Cookies.get("darkmode") == "true") {
	$('#rdoccss').attr("href", darkModeCsseHref);
}

//  https://cssdeck.com/blog/simple-jquery-stylesheet-switcher/

document.write('<style type="text/css">body{display:none}</style>');

</script>


</head>
<body id="top" class="table-of-contents">
  <!-- table_of_contents.html -->
  <div id='actionbar' >
    <div class='wrapper mdiv'>
      <ul class='grids g0'></ul>
    </div> 
    <!-- VERSION HEADER for 3.3.0.preview2 NOT FOUND -->
  </div> <!-- end action bar -->

  <div class='wrapper hdiv'>

    

    <div id='extraz'><div class='adzbox-index'  >
        
      </div>         
    </div>

    <main role="main">
    <h1 class="class">Table of Contents - did_you_mean: Ruby Standard Library Documentation</h1>


          <h2 id="classes">Classes and Modules</h2>
          <ul>
              <li class="module">
                <a href="DidYouMean.html">DidYouMean</a>

                <ul>
                    <li><a href="DidYouMean.html#label-Disabling+did_you_mean">Disabling <code>did_you_mean</code></a>
                    <li><a href="DidYouMean.html#label-Getting+the+original+error+message">Getting the original error message</a>
                    </ul>
                  </li>
              <li class="class">
                <a href="DidYouMean/ClassNameChecker.html">DidYouMean::ClassNameChecker</a>
                  </li>
              <li class="class">
                <a href="DidYouMean/ClassNameChecker/ClassName.html">DidYouMean::ClassNameChecker::ClassName</a>
                  </li>
              <li class="module">
                <a href="DidYouMean/Correctable.html">DidYouMean::Correctable</a>
                  </li>
              <li class="class">
                <a href="DidYouMean/Formatter.html">DidYouMean::Formatter</a>
                  </li>
              <li class="module">
                <a href="DidYouMean/Jaro.html">DidYouMean::Jaro</a>
                  </li>
              <li class="module">
                <a href="DidYouMean/JaroWinkler.html">DidYouMean::JaroWinkler</a>
                  </li>
              <li class="class">
                <a href="DidYouMean/KeyErrorChecker.html">DidYouMean::KeyErrorChecker</a>
                  </li>
              <li class="class">
                <a href="DidYouMean/MethodNameChecker.html">DidYouMean::MethodNameChecker</a>
                  </li>
              <li class="class">
                <a href="DidYouMean/NullChecker.html">DidYouMean::NullChecker</a>
                  </li>
              <li class="class">
                <a href="DidYouMean/PatternKeyNameChecker.html">DidYouMean::PatternKeyNameChecker</a>
                  </li>
              <li class="class">
                <a href="DidYouMean/Formatter.html">DidYouMean::PlainFormatter</a>
                  </li>
              <li class="class">
                <a href="DidYouMean/RequirePathChecker.html">DidYouMean::RequirePathChecker</a>
                  </li>
              <li class="class">
                <a href="DidYouMean/SpellChecker.html">DidYouMean::SpellChecker</a>
                  </li>
              <li class="class">
                <a href="DidYouMean/TreeSpellChecker.html">DidYouMean::TreeSpellChecker</a>
                  </li>
              <li class="class">
                <a href="DidYouMean/VariableNameChecker.html">DidYouMean::VariableNameChecker</a>
                  </li>
              <li class="class">
                <a href="DidYouMean/Formatter.html">DidYouMean::VerboseFormatter</a>
                  </li>
                </ul>

                <h2 id="methods">Methods</h2>
                <ul>

                    <li class="method">
                      <a href="DidYouMean.html#method-c-correct_error">::correct_error</a>
                      &mdash;
                      <span class="container">DidYouMean</span>

                    <li class="method">
                      <a href="DidYouMean.html#method-c-formatter">::formatter</a>
                      &mdash;
                      <span class="container">DidYouMean</span>

                    <li class="method">
                      <a href="DidYouMean.html#method-c-formatter-3D">::formatter=</a>
                      &mdash;
                      <span class="container">DidYouMean</span>

                    <li class="method">
                      <a href="DidYouMean/Formatter.html#method-c-message_for">::message_for</a>
                      &mdash;
                      <span class="container">DidYouMean::Formatter</span>

                    <li class="method">
                      <a href="DidYouMean/Formatter.html#method-c-message_for">::message_for</a>
                      &mdash;
                      <span class="container">DidYouMean::Formatter</span>

                    <li class="method">
                      <a href="DidYouMean/Formatter.html#method-c-message_for">::message_for</a>
                      &mdash;
                      <span class="container">DidYouMean::Formatter</span>

                    <li class="method">
                      <a href="DidYouMean/SpellChecker.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">DidYouMean::SpellChecker</span>

                    <li class="method">
                      <a href="DidYouMean/KeyErrorChecker.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">DidYouMean::KeyErrorChecker</span>

                    <li class="method">
                      <a href="DidYouMean/MethodNameChecker.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">DidYouMean::MethodNameChecker</span>

                    <li class="method">
                      <a href="DidYouMean/ClassNameChecker.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">DidYouMean::ClassNameChecker</span>

                    <li class="method">
                      <a href="DidYouMean/ClassNameChecker/ClassName.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">DidYouMean::ClassNameChecker::ClassName</span>

                    <li class="method">
                      <a href="DidYouMean/VariableNameChecker.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">DidYouMean::VariableNameChecker</span>

                    <li class="method">
                      <a href="DidYouMean/NullChecker.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">DidYouMean::NullChecker</span>

                    <li class="method">
                      <a href="DidYouMean/PatternKeyNameChecker.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">DidYouMean::PatternKeyNameChecker</span>

                    <li class="method">
                      <a href="DidYouMean/RequirePathChecker.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">DidYouMean::RequirePathChecker</span>

                    <li class="method">
                      <a href="DidYouMean/TreeSpellChecker.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">DidYouMean::TreeSpellChecker</span>

                    <li class="method">
                      <a href="DidYouMean/RequirePathChecker.html#method-c-requireables">::requireables</a>
                      &mdash;
                      <span class="container">DidYouMean::RequirePathChecker</span>

                    <li class="method">
                      <a href="DidYouMean.html#method-c-spell_checkers">::spell_checkers</a>
                      &mdash;
                      <span class="container">DidYouMean</span>

                    <li class="method">
                      <a href="DidYouMean/ClassNameChecker.html#method-i-class_names">#class_names</a>
                      &mdash;
                      <span class="container">DidYouMean::ClassNameChecker</span>

                    <li class="method">
                      <a href="DidYouMean/SpellChecker.html#method-i-correct">#correct</a>
                      &mdash;
                      <span class="container">DidYouMean::SpellChecker</span>

                    <li class="method">
                      <a href="DidYouMean/TreeSpellChecker.html#method-i-correct">#correct</a>
                      &mdash;
                      <span class="container">DidYouMean::TreeSpellChecker</span>

                    <li class="method">
                      <a href="DidYouMean/TreeSpellChecker.html#method-i-correct_element">#correct_element</a>
                      &mdash;
                      <span class="container">DidYouMean::TreeSpellChecker</span>

                    <li class="method">
                      <a href="DidYouMean/KeyErrorChecker.html#method-i-corrections">#corrections</a>
                      &mdash;
                      <span class="container">DidYouMean::KeyErrorChecker</span>

                    <li class="method">
                      <a href="DidYouMean/MethodNameChecker.html#method-i-corrections">#corrections</a>
                      &mdash;
                      <span class="container">DidYouMean::MethodNameChecker</span>

                    <li class="method">
                      <a href="DidYouMean/ClassNameChecker.html#method-i-corrections">#corrections</a>
                      &mdash;
                      <span class="container">DidYouMean::ClassNameChecker</span>

                    <li class="method">
                      <a href="DidYouMean/VariableNameChecker.html#method-i-corrections">#corrections</a>
                      &mdash;
                      <span class="container">DidYouMean::VariableNameChecker</span>

                    <li class="method">
                      <a href="DidYouMean/NullChecker.html#method-i-corrections">#corrections</a>
                      &mdash;
                      <span class="container">DidYouMean::NullChecker</span>

                    <li class="method">
                      <a href="DidYouMean/PatternKeyNameChecker.html#method-i-corrections">#corrections</a>
                      &mdash;
                      <span class="container">DidYouMean::PatternKeyNameChecker</span>

                    <li class="method">
                      <a href="DidYouMean/RequirePathChecker.html#method-i-corrections">#corrections</a>
                      &mdash;
                      <span class="container">DidYouMean::RequirePathChecker</span>

                    <li class="method">
                      <a href="DidYouMean/Correctable.html#method-i-corrections">#corrections</a>
                      &mdash;
                      <span class="container">DidYouMean::Correctable</span>

                    <li class="method">
                      <a href="DidYouMean/Correctable.html#method-i-detailed_message">#detailed_message</a>
                      &mdash;
                      <span class="container">DidYouMean::Correctable</span>

                    <li class="method">
                      <a href="DidYouMean/TreeSpellChecker.html#method-i-dictionary_without_leaves">#dictionary_without_leaves</a>
                      &mdash;
                      <span class="container">DidYouMean::TreeSpellChecker</span>

                    <li class="method">
                      <a href="DidYouMean/TreeSpellChecker.html#method-i-dimensions">#dimensions</a>
                      &mdash;
                      <span class="container">DidYouMean::TreeSpellChecker</span>

                    <li class="method">
                      <a href="DidYouMean/Jaro.html#method-i-distance">#distance</a>
                      &mdash;
                      <span class="container">DidYouMean::Jaro</span>

                    <li class="method">
                      <a href="DidYouMean/JaroWinkler.html#method-i-distance">#distance</a>
                      &mdash;
                      <span class="container">DidYouMean::JaroWinkler</span>

                    <li class="method">
                      <a href="DidYouMean/KeyErrorChecker.html#method-i-exact_matches">#exact_matches</a>
                      &mdash;
                      <span class="container">DidYouMean::KeyErrorChecker</span>

                    <li class="method">
                      <a href="DidYouMean/PatternKeyNameChecker.html#method-i-exact_matches">#exact_matches</a>
                      &mdash;
                      <span class="container">DidYouMean::PatternKeyNameChecker</span>

                    <li class="method">
                      <a href="DidYouMean/TreeSpellChecker.html#method-i-fall_back_to_normal_spell_check">#fall_back_to_normal_spell_check</a>
                      &mdash;
                      <span class="container">DidYouMean::TreeSpellChecker</span>

                    <li class="method">
                      <a href="DidYouMean/TreeSpellChecker.html#method-i-find_ideas">#find_ideas</a>
                      &mdash;
                      <span class="container">DidYouMean::TreeSpellChecker</span>

                    <li class="method">
                      <a href="DidYouMean/TreeSpellChecker.html#method-i-find_leaves">#find_leaves</a>
                      &mdash;
                      <span class="container">DidYouMean::TreeSpellChecker</span>

                    <li class="method">
                      <a href="DidYouMean/TreeSpellChecker.html#method-i-find_suggestions">#find_suggestions</a>
                      &mdash;
                      <span class="container">DidYouMean::TreeSpellChecker</span>

                    <li class="method">
                      <a href="DidYouMean/ClassNameChecker/ClassName.html#method-i-full_name">#full_name</a>
                      &mdash;
                      <span class="container">DidYouMean::ClassNameChecker::ClassName</span>

                    <li class="method">
                      <a href="DidYouMean/TreeSpellChecker.html#method-i-ideas_to_paths">#ideas_to_paths</a>
                      &mdash;
                      <span class="container">DidYouMean::TreeSpellChecker</span>

                    <li class="method">
                      <a href="DidYouMean/Formatter.html#method-i-message_for">#message_for</a>
                      &mdash;
                      <span class="container">DidYouMean::Formatter</span>

                    <li class="method">
                      <a href="DidYouMean/Formatter.html#method-i-message_for">#message_for</a>
                      &mdash;
                      <span class="container">DidYouMean::Formatter</span>

                    <li class="method">
                      <a href="DidYouMean/Formatter.html#method-i-message_for">#message_for</a>
                      &mdash;
                      <span class="container">DidYouMean::Formatter</span>

                    <li class="method">
                      <a href="DidYouMean/MethodNameChecker.html#method-i-method_names">#method_names</a>
                      &mdash;
                      <span class="container">DidYouMean::MethodNameChecker</span>

                    <li class="method">
                      <a href="DidYouMean/MethodNameChecker.html#method-i-names_to_exclude">#names_to_exclude</a>
                      &mdash;
                      <span class="container">DidYouMean::MethodNameChecker</span>

                    <li class="method">
                      <a href="DidYouMean/TreeSpellChecker.html#method-i-normalize">#normalize</a>
                      &mdash;
                      <span class="container">DidYouMean::TreeSpellChecker</span>

                    <li class="method">
                      <a href="DidYouMean/Correctable.html#method-i-original_message">#original_message</a>
                      &mdash;
                      <span class="container">DidYouMean::Correctable</span>

                    <li class="method">
                      <a href="DidYouMean/TreeSpellChecker.html#method-i-plausible_dimensions">#plausible_dimensions</a>
                      &mdash;
                      <span class="container">DidYouMean::TreeSpellChecker</span>

                    <li class="method">
                      <a href="DidYouMean/TreeSpellChecker.html#method-i-possible_paths">#possible_paths</a>
                      &mdash;
                      <span class="container">DidYouMean::TreeSpellChecker</span>

                    <li class="method">
                      <a href="DidYouMean/ClassNameChecker.html#method-i-scopes">#scopes</a>
                      &mdash;
                      <span class="container">DidYouMean::ClassNameChecker</span>

                    <li class="method">
                      <a href="DidYouMean/Correctable.html#method-i-spell_checker">#spell_checker</a>
                      &mdash;
                      <span class="container">DidYouMean::Correctable</span>

                    <li class="method">
                      <a href="DidYouMean/Correctable.html#method-i-to_s">#to_s</a>
                      &mdash;
                      <span class="container">DidYouMean::Correctable</span>

                    <li class="method">
                      <a href="DidYouMean/TreeSpellChecker.html#method-i-tree_depth">#tree_depth</a>
                      &mdash;
                      <span class="container">DidYouMean::TreeSpellChecker</span>
                    </ul>
                    </main>
                  </div> 

<footer id="validator-badges" role="contentinfo">
<p><a href="https://validator.w3.org/check/referer">Validate</a></p>
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.</p>
<p>Based on <a href="https://github.com/ged/darkfish/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</p>

  
    <p><p><a href="https://ruby-doc.org">Ruby-doc.org</a> is provided by <a href="https://jamesbritt.com">James Britt</a> and <a href="https://neurogami.com">Neurogami</a>. </p><p><a href="https://jamesbritt.bandcamp.com/">Hack your world.  Feed your head.  Live curious</a>.</p>
</p>
  
  </footer>

<script type="text/javascript">


  let ads  = $("#carbonads-container").children().detach();


  function swapMode() {
    var cookieName = 'darkmode';
    var cssDarkmode = Cookies.get(cookieName);
    console.log("***** swapMode! " + cssDarkmode + " *****");


    if (cssDarkmode == "true") {
      console.log("We have dark mode, set the css to light ...");
      $('#rdoccss').attr("href", defaultModeCssHref);
      $('#cssSelect').text("Dark mode");
      cssDarkmode = "false";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    } else {
      console.log("We not have dark mode, set the css to dark ...");
      $('#rdoccss').attr("href", darkModeCsseHref);
      $('#cssSelect').text("Light mode");
      cssDarkmode = "true";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    }

    console.log("  --------------- ");
  }


const vueCssApp = new Vue({
el: '#menubar',
data: {
isDark: false
},
methods: {
toggleClass: function(event){
this.isDark = !this.isDark;
}
}
})

const vueApp = new Vue({
el: '#vapp',
data: { 
isOpen: true
},

mounted() {
this.handleResize();
this.manage_mob_classes();
window.addEventListener('resize', this.handleResize)
//this.isOpen !=  (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},
destroyed() {
window.removeEventListener('resize', this.handleResize)
},
created() {
//manage_mob_classes();
},

methods : {
isMobile() {
  return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},

  handleResize() {
    if (!this.isMobile()) {
      this.isOpen = window.innerWidth > 800;
    }
  },

  manage_mob_classes() {
    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
      $("nav").addClass("mob_nav");
      $("main").addClass("mob_main");
      $("#extraz").addClass("mob_extraz");
      $("#carbonads-container").addClass("mob_carbonads-container");
      this.isOpen  = false;
    } else {
      $("nav").removeClass("mob_nav") 
        $("main").removeClass("mob_main");
      $("#extraz").removeClass("mob_extraz");
      $("#carbonads-container").removeClass("mob_carbonads-container");
      this.isOpen  = true;
    }
  },

  toggleNav() {
    this.isOpen =! this.isOpen ;
    // alert("Toggle nav!");
    console.log("toggleNav() click: " + this.isOpen );
  }
}
})

$("#carbonads-container").append(ads);


$(function() {

    var darkmode = Cookies.get("darkmode");
    console.log("Document ready: " + darkmode);

    if ( darkmode  == "true" ) {
      $('#cssSelect').text("Light mode");
    } else {
      $('#cssSelect').text("Dark mode");
     }

    $('body').css('display','block');
    });

</script>

    
  </body> 
</html>

